Class symantec.itools.db.beans.util.DataTypeHelper
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class symantec.itools.db.beans.util.DataTypeHelper

Object
   |
   +----symantec.itools.db.beans.util.DataTypeHelper

public class DataTypeHelper
extends Object
Helper class for datatypes

Version:
1.0
Author:
Puru Balakrishnan

Method Index

 o getArrayOfConstantDataTypeDesc()
return array of descriptions for datatypes used for constants
 o getDataType(String)
method to get int value from String
 o getDataTypeDescription(int)
method to convert int value to string
 o getJavaObjectForType(String, int)
Method to return appropriate object value for a particular datatype
 o getObjCodeGenForDataType(int)
method to get code generation string for a particular datatype
 o getSQLConstant(int)
method to get sql constants for a particular int value
 o getStringToIntHash()
Method to return Hashtable used for String to Integer conversion
 o isDataTypeDescriptionValid(String)
method to determine if a datatype description is valid
 o isDataTypeValidForConstant(int)
method to return true if the data type is valid for constant

Methods

 o getArrayOfConstantDataTypeDesc
public static java.lang.String[] getArrayOfConstantDataTypeDesc()
return array of descriptions for datatypes used for constants

Returns:
String[]
 o getDataType
public static int getDataType(String name)
method to get int value from String

Parameters:
name - String to be converted
Returns:
converted type
 o getDataTypeDescription
public static java.lang.String getDataTypeDescription(int type)
method to convert int value to string

Parameters:
type - value to convert
Returns:
converted description
 o getJavaObjectForType
public static java.lang.Object getJavaObjectForType(String value,
                                                    int type)
Method to return appropriate object value for a particular datatype

Parameters:
value - String value to be converted as Java Object
type - representing the datatype
Returns:
java Object for the specified value and type
 o getObjCodeGenForDataType
public static java.lang.String getObjCodeGenForDataType(int type)
method to get code generation string for a particular datatype

Parameters:
type - requested value
Returns:
code generation String for the specified datatype
 o getSQLConstant
public static java.lang.String getSQLConstant(int type)
method to get sql constants for a particular int value

Parameters:
type - requested value
Returns:
sql String constant for the specified constant
 o getStringToIntHash
public static java.util.Hashtable getStringToIntHash()
Method to return Hashtable used for String to Integer conversion

Returns:
Hashtable containing strings
 o isDataTypeDescriptionValid
public static boolean isDataTypeDescriptionValid(String text)
method to determine if a datatype description is valid

Parameters:
text - String to be tested
Returns:
true if datatype description is valid
 o isDataTypeValidForConstant
public static boolean isDataTypeValidForConstant(int type)
method to return true if the data type is valid for constant

Parameters:
type - indicating data type
Returns:
true or false

All Packages  Class Hierarchy  This Package  Previous  Next  Index